<?php
class PagerWidget extends CBasePager
{
    public $url;
    public $pager;
    public $currentPage;
    public function init()
    {
        parent::init();
    }

    public function run()
    {
        $url=$this->url;
        $pager=$this->pager;
        $currentPage=$this->currentPage;
        if ($pager->itemCount > 0) {
            $this->render('pager',compact('url','pager','currentPage'));
        }

    }
}
?>
